package demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HomeController {
    /**
     * 验证spring boot 是否正常工作的控制器
     * @return message
     */
    @GetMapping("/")
    @ResponseBody
    public String index() {
        return "springboot 运行成功";
    }
}
